<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>INode | EasyGameFramework</title>
	<meta name="description" content="Documentation for EasyGameFramework">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header class="tsd-header">
	<div class="tsd-page-toolbar">
		<div class="container header-container">
			<div class="header-logo">
				<a href="../globals.html" class="title">
					<span class="egf-logo"></span>
				</a>
				</select>
			</div>
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../globals.html">Packages</a>
				</li>
				<li>
					<a href="../modules/enet.html">enet</a>
				</li>
				<li>
					<a href="../modules/enet.__global.html">__global</a>
				</li>
				<li>
					<a href="../modules/enet.__global.enet.html">enet</a>
				</li>
				<li>
					<a href="enet.__global.enet.inode.html">INode</a>
				</li>
			</ul>
			<span class="tsd-breadcrumb-current">Interface INode&lt;ProtoKeyType&gt;</span>
			<div id="tsd-filter">
				<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
				<div class="tsd-filter-group">
					<input type="checkbox" id="tsd-filter-inherited" checked />
					<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
				</div>
			</div>
			<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-type-parameters">
				<h3>Type parameters</h3>
				<ul class="tsd-type-parameters">
					<li>
						<h4>ProtoKeyType = <span class="tsd-signature-type">any</span></h4>
					</li>
				</ul>
			</section>
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="target">INode</span>
					</li>
				</ul>
			</section>
			<section class="tsd-panel">
				<h3>Implemented by</h3>
				<ul class="tsd-hierarchy">
					<li><a href="../classes/enet.netnode.html" class="tsd-signature-type">NetNode</a></li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="enet.__global.enet.inode.html#neteventhandler" class="tsd-kind-icon">net<wbr>Event<wbr>Handler</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="enet.__global.enet.inode.html#protohandler" class="tsd-kind-icon">proto<wbr>Handler</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="enet.__global.enet.inode.html#socket" class="tsd-kind-icon">socket</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="enet.__global.enet.inode.html#connect" class="tsd-kind-icon">connect</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="enet.__global.enet.inode.html#disconnect" class="tsd-kind-icon">dis<wbr>Connect</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="enet.__global.enet.inode.html#init" class="tsd-kind-icon">init</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter"><a href="enet.__global.enet.inode.html#notify" class="tsd-kind-icon">notify</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="enet.__global.enet.inode.html#offpush" class="tsd-kind-icon">off<wbr>Push</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="enet.__global.enet.inode.html#offpushall" class="tsd-kind-icon">off<wbr>Push<wbr>All</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter"><a href="enet.__global.enet.inode.html#onpush" class="tsd-kind-icon">on<wbr>Push</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter"><a href="enet.__global.enet.inode.html#oncepush" class="tsd-kind-icon">once<wbr>Push</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="enet.__global.enet.inode.html#reconnect" class="tsd-kind-icon">re<wbr>Connect</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter"><a href="enet.__global.enet.inode.html#request" class="tsd-kind-icon">request</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="enet.__global.enet.inode.html#send" class="tsd-kind-icon">send</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
					<a name="neteventhandler" class="tsd-anchor"></a>
					<h3>net<wbr>Event<wbr>Handler</h3>
					<div class="tsd-signature tsd-kind-icon">net<wbr>Event<wbr>Handler<span class="tsd-signature-symbol">:</span> <a href="enet.__global.enet.ineteventhandler.html" class="tsd-signature-type">INetEventHandler</a></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in packages/enet/src/net-interfaces.ts:319</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>网络事件处理器</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
					<a name="protohandler" class="tsd-anchor"></a>
					<h3>proto<wbr>Handler</h3>
					<div class="tsd-signature tsd-kind-icon">proto<wbr>Handler<span class="tsd-signature-symbol">:</span> <a href="enet.__global.enet.iprotohandler.html" class="tsd-signature-type">IProtoHandler</a></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in packages/enet/src/net-interfaces.ts:321</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>协议处理器</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
					<a name="socket" class="tsd-anchor"></a>
					<h3>socket</h3>
					<div class="tsd-signature tsd-kind-icon">socket<span class="tsd-signature-symbol">:</span> <a href="enet.__global.enet.isocket.html" class="tsd-signature-type">ISocket</a></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in packages/enet/src/net-interfaces.ts:323</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>套接字实现</p>
						</div>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="connect" class="tsd-anchor"></a>
					<h3>connect</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">connect<span class="tsd-signature-symbol">(</span>option<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="enet.__global.enet.iconnectoptions.html" class="tsd-signature-type">IConnectOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/enet/src/net-interfaces.ts:333</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>连接</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>option: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="enet.__global.enet.iconnectoptions.html" class="tsd-signature-type">IConnectOptions</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>连接参数:可以直接传url|options</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="disconnect" class="tsd-anchor"></a>
					<h3>dis<wbr>Connect</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">dis<wbr>Connect<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/enet/src/net-interfaces.ts:337</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>断开连接</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="init" class="tsd-anchor"></a>
					<h3>init</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">init<span class="tsd-signature-symbol">(</span>config<span class="tsd-signature-symbol">?: </span><a href="enet.__global.enet.inodeconfig.html" class="tsd-signature-type">INodeConfig</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/enet/src/net-interfaces.ts:328</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>初始化网络节点，注入自定义处理</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> config: <a href="enet.__global.enet.inodeconfig.html" class="tsd-signature-type">INodeConfig</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>配置 重连次数，超时时间，网络事件处理，协议处理</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
					<a name="notify" class="tsd-anchor"></a>
					<h3>notify</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">notify&lt;T&gt;<span class="tsd-signature-symbol">(</span>protoKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ProtoKeyType</span>, data<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/enet/src/net-interfaces.ts:364</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>通知
									发送数据给服务器，不处理返回</p>
								</div>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>T</h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>protoKey: <span class="tsd-signature-type">ProtoKeyType</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>协议key</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> data: <span class="tsd-signature-type">T</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>数据体</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="offpush" class="tsd-anchor"></a>
					<h3>off<wbr>Push</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">off<wbr>Push<span class="tsd-signature-symbol">(</span>protoKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ProtoKeyType</span>, callbackHandler<span class="tsd-signature-symbol">: </span><a href="../modules/enet.__global.enet.html#anycallback" class="tsd-signature-type">AnyCallback</a>, context<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span>, onceOnly<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/enet/src/net-interfaces.ts:384</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>取消监听推送</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>protoKey: <span class="tsd-signature-type">ProtoKeyType</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>协议</p>
									</div>
								</li>
								<li>
									<h5>callbackHandler: <a href="../modules/enet.__global.enet.html#anycallback" class="tsd-signature-type">AnyCallback</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>回调</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> context: <span class="tsd-signature-type">any</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>指定上下文的监听</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> onceOnly: <span class="tsd-signature-type">boolean</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>是否只取消 监听一次 的推送监听</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="offpushall" class="tsd-anchor"></a>
					<h3>off<wbr>Push<wbr>All</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">off<wbr>Push<wbr>All<span class="tsd-signature-symbol">(</span>protoKey<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">ProtoKeyType</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/enet/src/net-interfaces.ts:389</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>取消所有监听</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> protoKey: <span class="tsd-signature-type">ProtoKeyType</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>指定协议的推送，如果为空，则取消所有协议的所有监听</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
					<a name="onpush" class="tsd-anchor"></a>
					<h3>on<wbr>Push</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Push&lt;ResData&gt;<span class="tsd-signature-symbol">(</span>protoKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ProtoKeyType</span>, handler<span class="tsd-signature-symbol">: </span><a href="../modules/enet.__global.enet.html#anycallback" class="tsd-signature-type">AnyCallback</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ResData</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/enet/src/net-interfaces.ts:370</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>监听推送</p>
								</div>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>ResData = <span class="tsd-signature-type">any</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>protoKey: <span class="tsd-signature-type">ProtoKeyType</span></h5>
								</li>
								<li>
									<h5>handler: <a href="../modules/enet.__global.enet.html#anycallback" class="tsd-signature-type">AnyCallback</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ResData</span><span class="tsd-signature-symbol">&gt;</span></h5>
									<div class="tsd-comment tsd-typography">
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
					<a name="oncepush" class="tsd-anchor"></a>
					<h3>once<wbr>Push</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">once<wbr>Push&lt;ResData&gt;<span class="tsd-signature-symbol">(</span>protoKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ProtoKeyType</span>, handler<span class="tsd-signature-symbol">: </span><a href="../modules/enet.__global.enet.html#anycallback" class="tsd-signature-type">AnyCallback</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ResData</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/enet/src/net-interfaces.ts:376</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>监听一次推送</p>
								</div>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>ResData = <span class="tsd-signature-type">any</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>protoKey: <span class="tsd-signature-type">ProtoKeyType</span></h5>
								</li>
								<li>
									<h5>handler: <a href="../modules/enet.__global.enet.html#anycallback" class="tsd-signature-type">AnyCallback</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ResData</span><span class="tsd-signature-symbol">&gt;</span></h5>
									<div class="tsd-comment tsd-typography">
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="reconnect" class="tsd-anchor"></a>
					<h3>re<wbr>Connect</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">re<wbr>Connect<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/enet/src/net-interfaces.ts:341</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>重连</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
					<a name="request" class="tsd-anchor"></a>
					<h3>request</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">request&lt;ReqData, ResData&gt;<span class="tsd-signature-symbol">(</span>protoKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ProtoKeyType</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ReqData</span>, resHandler<span class="tsd-signature-symbol">: </span><a href="enet.__global.enet.icallbackhandler.html" class="tsd-signature-type">ICallbackHandler</a><span class="tsd-signature-symbol">&lt;</span><a href="enet.__global.enet.idecodepackage.html" class="tsd-signature-type">IDecodePackage</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ResData</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><a href="../modules/enet.__global.enet.html#valuecallback" class="tsd-signature-type">ValueCallback</a><span class="tsd-signature-symbol">&lt;</span><a href="enet.__global.enet.idecodepackage.html" class="tsd-signature-type">IDecodePackage</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ResData</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/enet/src/net-interfaces.ts:348</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>请求协议接口，处理返回</p>
								</div>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>ReqData = <span class="tsd-signature-type">any</span></h4>
								</li>
								<li>
									<h4>ResData = <span class="tsd-signature-type">any</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>protoKey: <span class="tsd-signature-type">ProtoKeyType</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>协议key</p>
									</div>
								</li>
								<li>
									<h5>data: <span class="tsd-signature-type">ReqData</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>请求数据体</p>
									</div>
								</li>
								<li>
									<h5>resHandler: <a href="enet.__global.enet.icallbackhandler.html" class="tsd-signature-type">ICallbackHandler</a><span class="tsd-signature-symbol">&lt;</span><a href="enet.__global.enet.idecodepackage.html" class="tsd-signature-type">IDecodePackage</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ResData</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><a href="../modules/enet.__global.enet.html#valuecallback" class="tsd-signature-type">ValueCallback</a><span class="tsd-signature-symbol">&lt;</span><a href="enet.__global.enet.idecodepackage.html" class="tsd-signature-type">IDecodePackage</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ResData</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>返回处理</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="send" class="tsd-anchor"></a>
					<h3>send</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">send<span class="tsd-signature-symbol">(</span>netData<span class="tsd-signature-symbol">: </span><a href="../modules/enet.__global.enet.html#netdata" class="tsd-signature-type">NetData</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/enet/src/net-interfaces.ts:357</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>发送网络数据</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>netData: <a href="../modules/enet.__global.enet.html#netdata" class="tsd-signature-type">NetData</a></h5>
									<div class="tsd-comment tsd-typography">
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class="globals  ">
						<a href="../globals.html"><em>Packages</em></a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/broadcast.html">broadcast</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/c3d_comp_template.html">c3d-<wbr>comp-<wbr>template</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/c3daxios.html">c3daxios</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/cli.html">cli</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/core.html">core</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/display_ctrl.html">display-<wbr>ctrl</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/dpctrl_c3d.html">dpctrl-<wbr>c3d</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/dpctrl_ccc.html">dpctrl-<wbr>ccc</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/dpctrl_fgui.html">dpctrl-<wbr>fgui</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/dpctrl_fguicc.html">dpctrl-<wbr>fguicc</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/egf_protobuf_cli.html">egf-<wbr>protobuf-<wbr>cli</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/emitter3.html">emitter3</a>
					</li>
					<li class="current tsd-kind-module">
						<a href="../modules/enet.html">enet</a>
						<ul>
							<li class="current tsd-kind-namespace tsd-parent-kind-module tsd-is-not-exported">
								<a href="../modules/enet.__global.html">__global</a>
								<ul>
									<li class="current tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/enet.__global.enet.html">enet</a>
									</li>
								</ul>
							</li>
						</ul>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/enet_pbws.html">enet-<wbr>pbws</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/enet_pinus_pb.html">enet-<wbr>pinus-<wbr>pb</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/excel2all.html">excel2all</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/layer.html">layer</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/obj_pool.html">obj-<wbr>pool</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/xstate2c3d.html">xstate2c3d</a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-namespace tsd-parent-kind-namespace">
						<a href="../modules/enet.__global.enet.html" class="tsd-kind-icon">enet</a>
						<ul>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="enet.__global.enet.icallbackhandler.html" class="tsd-kind-icon">ICallback<wbr>Handler</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="enet.__global.enet.iconnectoptions.html" class="tsd-kind-icon">IConnect<wbr>Options</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="enet.__global.enet.idecodepackage.html" class="tsd-kind-icon">IDecode<wbr>Package</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace">
								<a href="enet.__global.enet.idefaulthandshakeres.html" class="tsd-kind-icon">IDefault<wbr>Handshake<wbr>Res</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace">
								<a href="enet.__global.enet.iheartbeatconfig.html" class="tsd-kind-icon">IHeart<wbr>Beat<wbr>Config</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="enet.__global.enet.imessage.html" class="tsd-kind-icon">IMessage</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="enet.__global.enet.ineteventhandler.html" class="tsd-kind-icon">INet<wbr>Event<wbr>Handler</a>
							</li>
							<li class="current tsd-kind-interface tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="enet.__global.enet.inode.html" class="tsd-kind-icon">INode</a>
								<ul>
									<li class=" tsd-kind-property tsd-parent-kind-interface">
										<a href="enet.__global.enet.inode.html#neteventhandler" class="tsd-kind-icon">net<wbr>Event<wbr>Handler</a>
									</li>
									<li class=" tsd-kind-property tsd-parent-kind-interface">
										<a href="enet.__global.enet.inode.html#protohandler" class="tsd-kind-icon">proto<wbr>Handler</a>
									</li>
									<li class=" tsd-kind-property tsd-parent-kind-interface">
										<a href="enet.__global.enet.inode.html#socket" class="tsd-kind-icon">socket</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface">
										<a href="enet.__global.enet.inode.html#connect" class="tsd-kind-icon">connect</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface">
										<a href="enet.__global.enet.inode.html#disconnect" class="tsd-kind-icon">dis<wbr>Connect</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface">
										<a href="enet.__global.enet.inode.html#init" class="tsd-kind-icon">init</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
										<a href="enet.__global.enet.inode.html#notify" class="tsd-kind-icon">notify</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface">
										<a href="enet.__global.enet.inode.html#offpush" class="tsd-kind-icon">off<wbr>Push</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface">
										<a href="enet.__global.enet.inode.html#offpushall" class="tsd-kind-icon">off<wbr>Push<wbr>All</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
										<a href="enet.__global.enet.inode.html#onpush" class="tsd-kind-icon">on<wbr>Push</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
										<a href="enet.__global.enet.inode.html#oncepush" class="tsd-kind-icon">once<wbr>Push</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface">
										<a href="enet.__global.enet.inode.html#reconnect" class="tsd-kind-icon">re<wbr>Connect</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
										<a href="enet.__global.enet.inode.html#request" class="tsd-kind-icon">request</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface">
										<a href="enet.__global.enet.inode.html#send" class="tsd-kind-icon">send</a>
									</li>
								</ul>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace">
								<a href="enet.__global.enet.inodeconfig.html" class="tsd-kind-icon">INode<wbr>Config</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="enet.__global.enet.ipackage.html" class="tsd-kind-icon">IPackage</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="enet.__global.enet.iprotohandler.html" class="tsd-kind-icon">IProto<wbr>Handler</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace">
								<a href="enet.__global.enet.ireconnectconfig.html" class="tsd-kind-icon">IReconnect<wbr>Config</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace">
								<a href="enet.__global.enet.irequestconfig.html" class="tsd-kind-icon">IRequest<wbr>Config</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace">
								<a href="enet.__global.enet.isocket.html" class="tsd-kind-icon">ISocket</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace">
								<a href="enet.__global.enet.isocketeventhandler.html" class="tsd-kind-icon">ISocket<wbr>Event<wbr>Handler</a>
							</li>
							<li class=" tsd-kind-type-alias tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="../modules/enet.__global.enet.html#anycallback" class="tsd-kind-icon">Any<wbr>Callback</a>
							</li>
							<li class=" tsd-kind-type-alias tsd-parent-kind-namespace">
								<a href="../modules/enet.__global.enet.html#netdata" class="tsd-kind-icon">Net<wbr>Data</a>
							</li>
							<li class=" tsd-kind-type-alias tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="../modules/enet.__global.enet.html#valuecallback" class="tsd-kind-icon">Value<wbr>Callback</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer class="with-border-bottom">
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li>
				<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
				<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
				<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
				<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
				<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
				<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="container tsd-generator">
	<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>